package gfyx_crm_relation

import (
	"context"
	"git.mycaigou.com/gfyx/common/tenant_db"
)

type gfyxCrmRelationRepos struct {
	tenant_db.TenantDB
}

func NewGfyxCrmRelationRepos() GfyxCrmRelationRepositoryIface {
	return &gfyxCrmRelationRepos{}
}

func (g *gfyxCrmRelationRepos) Save(ctx context.Context, po *GfyxCrmRelationPo) error {
	return g.GetTenantDB(ctx).Table(po.TableName()).Create(po).Error
}
